home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / VideoServices.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  4.3 KB  |  132 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        VideoServices.a
  3. ;
  4. ;    Contains:    Video Services Library Interfaces.
  5. ;
  6. ;    Version:    Technology:    PowerSurge 1.0.2
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__VIDEOSERVICES__') = 'UNDEFINED' THEN
  19. __VIDEOSERVICES__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__NAMEREGISTRY__') = 'UNDEFINED' THEN
  25.     include 'NameRegistry.a'
  26.     ENDIF
  27.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  28.     include 'Quickdraw.a'
  29.     ENDIF
  30.  
  31.  
  32. kTransparentEncoding            EQU        0
  33. kInvertingEncoding                EQU        1
  34.  
  35. kTransparentEncodingShift        EQU        $00
  36. kTransparentEncodedPixel        EQU        $01
  37. kInvertingEncodingShift            EQU        $02
  38. kInvertingEncodedPixel            EQU        $04
  39.  
  40.  
  41.  
  42.  
  43. kHardwareCursorDescriptorMajorVersion EQU $0001
  44. kHardwareCursorDescriptorMinorVersion EQU $0000
  45. ; typedef UInt32 *                        UInt32Ptr
  46.  
  47. HardwareCursorDescriptorRec RECORD 0
  48. majorVersion             ds.w    1                ; offset: $0 (0)
  49. minorVersion             ds.w    1                ; offset: $2 (2)
  50. height                     ds.l    1                ; offset: $4 (4)
  51. width                     ds.l    1                ; offset: $8 (8)
  52. bitDepth                 ds.l    1                ; offset: $C (12)
  53. maskBitDepth             ds.l    1                ; offset: $10 (16)
  54. numColors                 ds.l    1                ; offset: $14 (20)
  55. colorEncodings             ds.l    1                ; offset: $18 (24)
  56. flags                     ds.l    1                ; offset: $1C (28)
  57. supportedSpecialEncodings  ds.l    1                ; offset: $20 (32)
  58. specialEncodings         ds.l    16                ; offset: $24 (36)
  59. sizeof                     EQU *                    ; size:   $64 (100)
  60.                         ENDR
  61. ; typedef struct HardwareCursorDescriptorRec * HardwareCursorDescriptorPtr
  62.  
  63.  
  64. kHardwareCursorInfoMajorVersion    EQU        $0001
  65. kHardwareCursorInfoMinorVersion    EQU        $0000
  66. HardwareCursorInfoRec    RECORD 0
  67. majorVersion             ds.w    1                ; offset: $0 (0)        ;  Test tool should check for kHardwareCursorInfoMajorVersion1
  68. minorVersion             ds.w    1                ; offset: $2 (2)        ;  Test tool should check for kHardwareCursorInfoMinorVersion1
  69. cursorHeight             ds.l    1                ; offset: $4 (4)
  70. cursorWidth                 ds.l    1                ; offset: $8 (8)
  71. colorMap                 ds.l    1                ; offset: $C (12)        ;  nil or big enough for hardware's max colors
  72. hardwareCursor             ds.l    1                ; offset: $10 (16)
  73. reserved                 ds.l    6                ; offset: $14 (20)        ;  Test tool should check for 0s
  74. sizeof                     EQU *                    ; size:   $2C (44)
  75.                         ENDR
  76. ; typedef struct HardwareCursorInfoRec * HardwareCursorInfoPtr
  77.  
  78.  
  79.  
  80. kVBLInterruptServiceType        EQU        'vbl '
  81. kHBLInterruptServiceType        EQU        'hbl '
  82. kFrameInterruptServiceType        EQU        'fram'
  83. kConnectInterruptServiceType    EQU        'dci '                ; Renamed -- Use kFBCheckInterruptServiceType
  84. kFBConnectInterruptServiceType    EQU        'dci '                ; Demand to check configuration (Hardware unchanged)
  85. kFBChangedInterruptServiceType    EQU        'chng'                ; Demand to rebuild (Hardware has reinitialized on dependent change)
  86. kFBOfflineInterruptServiceType    EQU        'remv'                ; Demand to remove framebuffer (Hardware not available on dependent change -- but must not buserror)
  87. kFBOnlineInterruptServiceType    EQU        'add '                ; Notice that hardware is available (after being removed)
  88. ; typedef ResType                         InterruptServiceType
  89.  
  90. ; typedef UInt32                         InterruptServiceIDType
  91.  
  92. ; typedef InterruptServiceIDType *        InterruptServiceIDPtr
  93.  
  94. ;
  95. ; extern OSErr VSLNewInterruptService(RegEntryID *serviceDevice, InterruptServiceType serviceType, InterruptServiceIDPtr serviceID)
  96. ;
  97.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  98.         IMPORT_CFM_FUNCTION VSLNewInterruptService
  99.     ENDIF
  100.  
  101. ;
  102. ; extern OSErr VSLWaitOnInterruptService(InterruptServiceIDType serviceID, Duration timeout)
  103. ;
  104.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  105.         IMPORT_CFM_FUNCTION VSLWaitOnInterruptService
  106.     ENDIF
  107.  
  108. ;
  109. ; extern OSErr VSLDisposeInterruptService(InterruptServiceIDType serviceID)
  110. ;
  111.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  112.         IMPORT_CFM_FUNCTION VSLDisposeInterruptService
  113.     ENDIF
  114.  
  115. ;
  116. ; extern OSErr VSLDoInterruptService(InterruptServiceIDType serviceID)
  117. ;
  118.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  119.         IMPORT_CFM_FUNCTION VSLDoInterruptService
  120.     ENDIF
  121.  
  122. ;
  123. ; extern Boolean VSLPrepareCursorForHardwareCursor(void *cursorRef, HardwareCursorDescriptorPtr hardwareDescriptor, HardwareCursorInfoPtr hwCursorInfo)
  124. ;
  125.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  126.         IMPORT_CFM_FUNCTION VSLPrepareCursorForHardwareCursor
  127.     ENDIF
  128.  
  129.  
  130.     ENDIF ; __VIDEOSERVICES__ 
  131.  
  132.